package cn.tedu.micro.demo.device.dao.repository;

import cn.tedu.micro.demo.device.dao.mapper.GunInfoMapper;
import cn.tedu.micro.demo.device.po.GunInfoPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 数据 如何实现读写
 */
@Repository
public class DeviceRepositoryImpl implements DeviceRepository{
    @Autowired
    private GunInfoMapper gunInfoMapper;

    @Override
    public GunInfoPO getGunInfoById(Integer gunId) {
        return gunInfoMapper.selectById(gunId);
    }
}
